package com.lesson11.waiguan;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/9/2 19:28
 */
public class YinXiang
{
    private YinXiang(){}

    private static YinXiang instance = new YinXiang();

    public static YinXiang getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("音响on");
    }

    public void off(){
        System.out.println("音响off");
    }
}
